package cn.hdu.liang.core.dao.country;

import cn.hdu.liang.core.bean.country.City;
import cn.hdu.liang.core.query.country.CityQuery;

import java.util.List;


public interface CityDao {

    //添加
    public Integer addCity(City city);

    //根据主键查找
    public City getCityByKey(Integer id);

    //根据主键批量查找
    public List<City> getCitysByKeys(List<Integer> idList);

    //根据主键删除
    public Integer deleteByKey(Integer id);

    //根据主键批量删除
    public Integer deleteByKeys(List<Integer> idList);

    //根据主键更新
    public Integer updateCityByKey(City city);

    //分页查询
    public List<City> getCityListWithPage(CityQuery cityQuery);

    //集合查询
    public List<City> getCityList(CityQuery cityQuery);

    //总条数
    public int getCityListCount(CityQuery cityQuery);
}
